﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace CSP.Model.Entities
{
    public class Update
    {
        public string UpdateEvent { get; set; }
        public string UpdateIcon { get; set; }
        public string ColleagueAccount { get; set; }
        public string ColleagueName { get; set; }
        public string ColleaguePictureUrl { get; set; }
        public string EventTime { get; set; }
        public string ColleagueEmail { get; set; }

        public Update()
        {
        }
    }

    public class UpdateCollection : SortableCollectionBase
    {
        public UpdateCollection()
        {
            base.SortObjectType = typeof(Update);
        }

        public Update this[int index]
        {
            get
            {
                return ((Update)List[index]);
            }
            set
            {
                List[index] = value;
            }
        }
        public int Add(Update value)
        {
            return (List.Add(value));
        }
        public int IndexOf(Update value)
        {
            return (List.IndexOf(value));
        }
        public void Insert(int index, Update value)
        {
            List.Insert(index, value);
        }
        //......
    }
}
